mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-15 01:01:43 +10:00
Firebase mock: fix for property ServerValue.TIMESTAMP
This commit is contained in:
@ -157,9 +157,12 @@ const database = () => {
|
||||
};
|
||||
};
|
||||
|
||||
database.ServerValue = {
|
||||
TIMESTAMP: Date.now(),
|
||||
};
|
||||
database.ServerValue = {};
|
||||
Object.defineProperty(database.ServerValue, 'TIMESTAMP', {
|
||||
get() {
|
||||
return new Date().getTime();
|
||||
},
|
||||
});
|
||||
|
||||
export default class firebase {
|
||||
static auth = auth;
|
||||
|
||||
Reference in New Issue
Block a user