We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c6b82f commit dfecc61Copy full SHA for dfecc61
src/lib/adapters/GoogleDrive.ts
@@ -231,12 +231,12 @@ export default class GoogleDriveAdapter extends CachingAdapter {
231
}
232
233
234
- if (file) {
+ if (file && file.id) {
235
this.fileId = file.id
236
if (forceLock) {
237
this.locked = await this.setLock(this.fileId)
238
} else if (needLock) {
239
- const data = await this.getFileMetadata(file.id, 'appProperties')
+ const data = await this.getFileMetadata(this.fileId, 'appProperties')
240
if (data.appProperties && data.appProperties.locked && (data.appProperties.locked === true || JSON.parse(data.appProperties.locked))) {
241
const lockedDate = JSON.parse(data.appProperties.locked)
242
if (!Number.isInteger(lockedDate)) {
0 commit comments